﻿@model AncientLand.Service.Entity.News
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_AdminLayoutPage.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/xheditor/xheditor.js")"></script>
<div class="grid_16 widget first">
    <div class="widget_title clearfix">
        <h2>
            新增时尚资讯</h2>
        <ul>
            <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="@Url.Content("~/NewsAdmin/List")" >
                <span>返回时尚资讯列表</span></a> </li>
        </ul>
    </div>
    <div class="widget_body">
        @using (Html.BeginForm())
        {
            @Html.ValidationSummary(true)
            <table class="simple">
                <tbody>
                    <tr>
                        <td>
                            @Html.LabelFor(model => model.Title)
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.Title, new { style = "width:870px" })
                            <br />
                            @Html.ValidationMessageFor(model => model.Title)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            @Html.LabelFor(model => model.Content)
                        </td>
                        <td>
                            @Html.TextAreaFor(model => model.Content, new { @class = "xheditor", rows = "25", id = "news-content", style = "width:880px" })
                            <br />@Html.ValidationMessageFor(model => model.Content)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p style="display: none">
                            </p>
                        </td>
                        <td>
                            <input class="btn blue" type="submit" value="【保 存】" />
                        </td>
                    </tr>
                </tbody>
            </table>
        }
    </div>
</div>
<script type="text/javascript">
    $('#news-content').xheditor({ upLinkUrl: "@Url.Content("~/Home/Upload")", upLinkExt: "zip,rar,txt", upImgUrl: "@Url.Content("~/Home/Upload")", upImgExt: "jpg,jpeg,gif,png", upFlashUrl: "@Url.Content("~/Home/Upload")", upFlashExt: "swf", upMediaUrl: "@Url.Content("~/Home/Upload")", upMediaExt: "avi" });
</script>
